﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesGLApp.DAL.MesDB
{
    [Serializable]
    [Table("site_info_group")]
    public class SiteInfoGroup
    {
        /// <summary>
        /// id，主键，自增长
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column("id")]
        public int ID { get; set; }

        /// <summary>
        /// 站点ID
        /// </summary>
        [Column("site_id")]
        public int SiteID { get; set; }

        /// <summary>
        /// 组别ID
        /// </summary>
        [Column("group_id")]
        public int GroupID { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Column("sort")]
        public int Sort { get; set; }

        /// <summary>
        /// 是否最后站点，0代表该站点不是最后站点，1代表是
        /// </summary>
        [Column("is_last")]
        public int IsLast { get; set; }


        /// <summary>
        /// 建档人
        /// </summary>
        [Column("create_user")]
        public string CreateUser { get; set; }


        /// <summary>
        /// 建档日期
        /// </summary>
        [Column("create_date")]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 站点是否并行
        /// 0为否，1为是
        /// </summary>
        [Column("is_margin")]
        public int? is_margin { get; set; }

        /// <summary>
        /// 并行开始站点id
        /// </summary>
        [Column("play_margin")]
        public string play_margin { get; set; }

        /// <summary>
        /// 并行结束站点id
        /// </summary>
        [Column("end_margin")]
        public string end_margin { get; set; }
    }
}
